--- d4x-2.5.7.1/main/ftpd.cc	2006-04-05 21:02:36.000000000 +0200
+++ d4x-2.5.7.1.src/main/ftpd.cc	2006-04-27 20:44:51.000000000 +0200
@@ -663,7 +663,8 @@
 
 SocketPtr tFtpDownload::export_ctrl_socket(){
 	if (FTP) return(FTP->export_ctrl_socket());
-	return(SocketPtr());
+	SocketPtr dummy = SocketPtr();
+	return(dummy);
 };
 
 tFtpDownload::~tFtpDownload() {
